package com.guuyoog.moonservice.api.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.guuyoog.moonserviceapi.api.UserService;
import com.guuyoog.moonserviceapi.model.UserDto;

import java.util.ArrayList;
import java.util.List;

/**
 * @author guuyoog
 * @date 2018/7/19
 */
@Service(version = "${demo.service.version}",
        application = "${dubbo.application.id}",
        protocol = "${dubbo.protocol.id}",
        registry = "${dubbo.registry.id}"
)
public class UserServiceImpl implements UserService {

    @Override
    public List<UserDto> getUserList() {
        List<UserDto> list = new ArrayList<UserDto>(16);
        UserDto userDto = new UserDto();
        userDto.setUserName("1");
        userDto.setPassword("2");
        list.add(userDto);
        return list;
    }

}
